wayland/surface: Don't save uninitialized size
authorJonas Ådahl <jadahl@gmail.com>
Tue, 24 Nov 2020 21:58:02 +0000 (22:58 +0100)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 7 Dec 2020 08:46:39 +0000 (09:46 +0100)
commit289b50785b8be2a70ba4760ed627fa931cd085b1
treeca659abafe2221e0e464a3129cee2f3679f920cb
parent68c14242b2840a8d66dd07118c39d842086b3ca2
wayland/surface: Don't save uninitialized size

GdkSurface's are initialized to have the size 1x1, as otherwise we'd
receive an X11 error, would a corresponding X11 window be created.

This confuses the "saved size" mechanisms in the Wayland backend, as
treats 0 as uninitialized, and not 1.

Fix this simply not saving size that if it's smaller or equal than 1.
gdk/wayland/gdksurface-wayland.c